﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.AutoCAD.Geometry;

namespace Galaxy.AutoCAD.Tests
{
    public static class GeTools
    {
        public static double AngleFromAxis(this Point3d pt1, Point3d pt2)
        {
            Vector2d vector = new Vector2d(pt1.X - pt2.X, pt1.Y - pt2.Y);
            return vector.Angle;
        }
        public static Point3d MidPoint(Point3d pt1, Point3d pt2)
        {
            Point3d minPoint = new Point3d((pt1.X + pt2.X) / 2, (pt1.Y + pt2.Y) / 2, (pt1.Z + pt2.Z) / 2);
            return minPoint;
        }
    }
}
